<include file="public/min-header"/>
<div class="wrapper">
    <include file="public/breadcrumb"/>
    <section class="content" style="padding:0px 15px;">
        <!-- Main content -->
        <div class="container-fluid">
            <div class="pull-right">
                <a href="javascript:history.go(-1)" data-toggle="tooltip" title="" class="btn btn-default" data-original-title="返回"><i class="fa fa-reply"></i></a>
            </div>
            <div class="panel panel-default">
                <div class="panel-body ">
                    <ul class="nav nav-tabs">
                        <foreach name="group_list" item="vo" key="k">
                            <li <if condition="$k eq 'index'">class="active"</if>><a href="javascript:void(0)" data-url="{:U('System/index',array('inc_type'=>$k))}" data-toggle="tab" onclick="goset(this)">{$vo}</a></li>
                        </foreach>
                    </ul>
                    <!--表单数据-->
                    <form method="post" id="handlepost" action="{:U('System/handle')}">
                        <!--通用信息-->
                        <div class="tab-content" style="padding:20px 0px;">
                            <div class="tab-pane active" id="tab_tongyong">
                                <table class="table table-bordered">
                                    <tbody>
                                    <tr>
                                        <td class="col-sm-2">网站名称：</td>
                                        <td class="col-sm-8">
                                            <input type="text" class="form-control" name="store_name" value="{$config.store_name}" >
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="col-sm-2">公司名称：</td>
                                        <td class="col-sm-8">
                                            <input type="text" class="form-control" name="company_name" value="{$config.company_name}" >
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>公司简介：</td>
                                        <td>
                                            <input type="text" class="form-control" name="abstract" value="{$config.abstract}" >
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>咨询电话：</td>
                                        <td>
                                            <input type="text" class="form-control" name="phone" value="{$config.phone}" >
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>公司地址：</td>
                                        <td colspan="2">
                                            <input type="text" placeholder="公司地址" class="form-control" name="address" value="{$config.address}">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="col-sm-2">网站备案号：</td>
                                        <td class="col-sm-8">
                                            <input type="text" class="form-control" name="record_no" value="{$config.record_no}" >
                                            <span id="err_attr_name" style="color:#F00; display:none;"></span>
                                        </td>
                                    </tr>

                                    <tr>
                                        <td>下架提示语：</td>
                                        <td colspan="2">
                                            <input type="text" placeholder="下架提示语" class="form-control" name="prompt" value="{$config.prompt ?: ''}">
                                        </td>
                                    </tr>
                                    </tbody>
                                    <tfoot>
                                    <tr>
                                        <td><input type="hidden" name="inc_type" value="{$inc_type}"></td>
                                        <td class="text-right"><input class="btn btn-primary" type="button" onclick="adsubmit()" value="保存"></td></tr>
                                    </tfoot>
                                </table>
                            </div>
                        </div>
                    </form><!--表单数据-->
                </div>
            </div>
        </div>
    </section>
</div>
<script>
    function adsubmit(){
        $('#handlepost').submit();
    }
    function goset(obj){
        window.location.href = $(obj).attr('data-url');
    }
</script>
</body>
</html>